import http from "@/api";

export const ResourceCategoryList = (params?: object) => {
  return http.get(`/common/resourcecategory/index`, params, { noLoading: false });
};
export const ResourceCategoryCreate = (params?: object) => {
  return http.post(`/common/resourcecategory/create`, params, { noLoading: false });
};
export const ResourceCategoryModify = (params?: object) => {
  return http.post(`/common/resourcecategory/modify`, params, { noLoading: false });
};
export const ResourceCategoryDel = (params?: object) => {
  return http.get(`/common/resourcecategory/delete`, params, { noLoading: false });
};

export const ResourceList = (params?: object) => {
  return http.get(`/common/resource/index`, params, { noLoading: false });
};

export const RegionList = (params?: object) => {
  return http.get(`/common/region/index`, params, { noLoading: false });
};

export const RegionTree = (params?: object) => {
  return http.get(`/common/region/tree`, params, { noLoading: false });
};

export const brandList = (params?: object) => {
  return http.get(`/common/brand/index`, params, { noLoading: false });
};
export const brandDel = (params?: object) => {
  return http.get(`/common/brand/delete`, params, { noLoading: false });
};

export const brandStatus = (params?: object) => {
  return http.post(`/common/brand/status`, params, { noLoading: false });
};
export const brandDetail = (params?: object) => {
  return http.get(`/common/brand/detail`, params, { noLoading: false });
};

export const brandCreate = (params?: object) => {
  return http.post(`/common/brand/create`, params, { noLoading: false });
};

export const brandUpdate = (params?: object) => {
  return http.post(`/common/brand/modify`, params, { noLoading: false });
};

export const unitList = (params?: object) => {
  return http.get(`/common/unit/index`, params, { noLoading: false });
};
export const unitDel = (params?: object) => {
  return http.get(`/common/unit/delete`, params, { noLoading: false });
};

export const unitStatus = (params?: object) => {
  return http.post(`/common/unit/status`, params, { noLoading: false });
};
export const unitDetail = (params?: object) => {
  return http.get(`/common/unit/detail`, params, { noLoading: false });
};

export const unitCreate = (params?: object) => {
  return http.post(`/common/unit/create`, params, { noLoading: false });
};

export const unitUpdate = (params?: object) => {
  return http.post(`/common/unit/modify`, params, { noLoading: false });
};

export const rateList = (params?: object) => {
  return http.get(`/common/rate/index`, params, { noLoading: false });
};
export const rateDel = (params?: object) => {
  return http.get(`/common/rate/delete`, params, { noLoading: false });
};
export const rateDetail = (params?: object) => {
  return http.get(`/common/rate/detail`, params, { noLoading: false });
};

export const rateCreate = (params?: object) => {
  return http.post(`/common/rate/create`, params, { noLoading: false });
};

export const rateUpdate = (params?: object) => {
  return http.post(`/common/rate/modify`, params, { noLoading: false });
};

export const calendarList = (params?: object) => {
  return http.get(`/common/calendar/index`, params, { noLoading: false });
};

export const calendarSetting = (params?: object) => {
  return http.get(`/common/calendar/setting`, params, { noLoading: false });
};

export const groupList = (params?: object) => {
  return http.get(`/common/config/group/index`, params, { noLoading: false });
};
export const groupDel = (params?: object) => {
  return http.get(`/common/config/group/delete`, params, { noLoading: false });
};
export const groupDetail = (params?: object) => {
  return http.get(`/common/config/group/detail`, params, { noLoading: false });
};

export const groupCreate = (params?: object) => {
  return http.post(`/common/config/group/create`, params, { noLoading: false });
};

export const groupUpdate = (params?: object) => {
  return http.post(`/common/config/group/modify`, params, { noLoading: false });
};

export const groupStatus = (params?: object) => {
  return http.post(`/common/config/group/status`, params, { noLoading: false });
};

export const valList = (params?: object) => {
  return http.get(`/common/config/val/index`, params, { noLoading: false });
};
export const valDel = (params?: object) => {
  return http.get(`/common/config/val/delete`, params, { noLoading: false });
};
export const valDetail = (params?: object) => {
  return http.get(`/common/config/val/detail`, params, { noLoading: false });
};
export const valCreate = (params?: object) => {
  return http.post(`/common/config/val/create`, params, { noLoading: false });
};
export const valUpdate = (params?: object) => {
  return http.post(`/common/config/val/modify`, params, { noLoading: false });
};
export const valStatus = (params?: object) => {
  return http.post(`/common/config/val/status`, params, { noLoading: false });
};

export const fieldList = (params?: object) => {
  return http.get(`/common/config/field/index`, params, { noLoading: false });
};
export const fieldDel = (params?: object) => {
  return http.get(`/common/config/field/delete`, params, { noLoading: false });
};
export const fieldDetail = (params?: object) => {
  return http.get(`/common/config/field/detail`, params, { noLoading: false });
};
export const fieldCreate = (params?: object) => {
  return http.post(`/common/config/field/create`, params, { noLoading: false });
};
export const fieldUpdate = (params?: object) => {
  return http.post(`/common/config/field/modify`, params, { noLoading: false });
};
export const fieldStatus = (params?: object) => {
  return http.post(`/common/config/field/status`, params, { noLoading: false });
};

export const settingList = (params?: object) => {
  return http.get(`/common/config/group/setting`, params, { noLoading: false });
};

export const settingCreate = (params?: object) => {
  return http.get(`/common/config/setting/create`, params, { noLoading: false });
};

export const settingUpdate = (params?: object) => {
  return http.get(`/common/config/setting/modify`, params, { noLoading: false });
};
